//
//
//
//
//

#ifndef _MUTEX_H_
#define _MUTEX_H_

#include "common.h"

class Mutex
{
	public:
		Mutex();
		~Mutex();
		bool Lock();
		bool TryLock();
		bool UnLock();

	private:
		pthread_mutex_t _mutex;
};

class MutexVal
{
	public:
		MutexVal(Mutex& mutex);
		~MutexVal();
	private:
		Mutex& _mutex;
};

#endif // _MUTEX_H_
